<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap-responsive.min.css">
        <link rel="stylesheet" type="text/css" href="../view/css/estilo.css">

        <script type="text/javascript" src="../view/js/monitor.js"></script>
        <script type="text/javascript" src="../view/js/bootstrap.js"></script>
        <script type="text/javascript" src="../view/js/bootstrap.min.js"></script>

        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <?php include 'Menu1.php'; ?>
        <div classe="img-canto">
            <img src="../view/img/monitoria.jpg" height="100%" style=" height: 200px;width: 350px;padding-left: 0px; margin-bottom: 20px;" ></div>


        <form class="form-horizontal" action="InsereAluno.php" method="post" >
            <div class="control-group">
                <label class="control-label" for="inputEmail"> Nome</label>
                <div class="controls">             
                    <input class="span4" type="text" name="nomeAluno" >
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Sobrenome</label>
                <div class="controls">
                    <input width="500" type="text"  id="inputEmail" name="sobrenomeAluno">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Turma</label>
                <div class="controls">
           <?php
                    include 'conexao.php';
                    $sql = "select count(*) from curso";
                    $resultado4 = mysql_query($sql, $conexao);
                    $cont = mysql_result($resultado4, 0, "count(*)"); //pegando quantidade

                    $sqlProf1 = "select * from curso";
                    $resultado5 = mysql_query($sqlProf1, $conexao);
                  echo "<select name='listaCurso'>";
                    for($i = 0; $i< $cont; $i++){
                       
                        $nomeCurso = mysql_result($resultado5,$i, "nome") ;
                       echo "<option value=" .$nomeCurso.">" .$nomeCurso . "</option>";  
                    }
                       echo "</select>"; 
                    mysql_close($conexao);
                    
                    ?>
                </div>
            </div>
          
                   <div class="control-group">
                <div class="controls">              
                    <input type="submit" class="btn" value="Confirmar" id="inseriMonitor" >
                </div>
            </div>
        </form>

    </body>
</html>

